<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-27 20:45:16
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-27 20:45:17
-->
<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-27 20:37:20
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-27 20:44:28
-->
<template>
  <div>
    <h2>内容渲染指令</h2>
    <p v-text="uname"></p>
    <p>年年{{ age }}岁</p>
    <p v-html="info"></p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      uname: "mxy",
      age: 18,
      info: "超级<strong>厉害</strong>",
    };
  },
};
</script>

<style>
h2 {
  color: red;
}
</style>
